package com.intretech.umsin.system.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.intretech.umsin.common.web.ApiResult;
import com.intretech.umsin.system.param.SysPostParam;
import com.intretech.umsin.system.vo.SysPostVo;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
* @version V1.0
* 岗位信息: sys_post 为其他服务提供内部调用接口 API.
* @InterfaceName: SysPostApi
* @Description: 岗位信息:sys_post 为其他服务提供内部调用接口 API.
* @author: 李启联
* @date:   2022-8-16 16:44:07
* @Copyright: Copyright (c) 2022
*/

public interface SysPostApi {

    @GetMapping("/system/syspost/get/{id}")
    public ApiResult<SysPostVo> querySysPostById(@PathVariable("id") String id);

    @PostMapping("/system/syspost/listByIds")
    public ApiResult<List<SysPostVo>> querySysPostByIds(@RequestBody List<String> ids);

    @PostMapping("/system/syspost/page/{pageNo}/{pageSize}")
    public ApiResult<IPage<SysPostVo>> querySysPostForPage(@RequestBody SysPostParam params, @PathVariable("pageNo") Integer pageNo, @PathVariable("pageSize") Integer pageSize);

    @PostMapping("/system/syspost/list")
    public ApiResult<List<SysPostVo>> querySysPostForList(@RequestBody SysPostParam params);

    @PostMapping("/system/syspost/add")
    public ApiResult<SysPostVo> addSysPost(@RequestBody SysPostVo vo);

    @PostMapping("/system/syspost/adds")
    public ApiResult<List<SysPostVo>> addsSysPost(@RequestBody List<SysPostVo> voList);

    @PutMapping("/system/syspost/modify")
    public ApiResult<SysPostVo> modifySysPost(@RequestBody SysPostVo vo);

    @PutMapping("/system/syspost/modifys")
    public ApiResult<List<SysPostVo>> modifysSysPost(@RequestBody List<SysPostVo> voList);

    @DeleteMapping("/system/syspost/remove/{id}")
    public ApiResult<Void> removeSysPost(@PathVariable("id") String id);

    @DeleteMapping("/system/syspost/removes")
    public ApiResult<Void> removesSysPost(@RequestBody List<String> ids);


}